<?php
//增加商品类
namespace app\admin\model;
use think\Model;
class Shangpin extends Model
{
	public function select2()
	{
		return 11111111111;
	}
	//增加商品
	public function insert2($data)
	{	
		$this->data($data);
		$result = $this->save();
		if ($result) {
			return $this->id;
		}else{
			return false;
		}
	}
	//商品活动表
	public function insertHd($data)
	{
		
		$result = $this->table('grm_shuodong')->insert($data);
	}
	//商品优惠劵表
	public function insertYh($data)
	{
		$result = $this->table('grm_grm_shangpin_syouhuijuan')->insert($data);
	}
}
